home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Programming / HBasicGolded / Files / api / explorer.config next >
Text File  |  2000-01-28  |  3KB  |  58 lines

  1. ; Command syntax used in this file
  2. ;
  3. ;   PATTERN/K,EXECUTABLE/K,COMMAND/K,EXPLAIN/K,DEEP/N,CONFIG/K,PANE/K,SLIDERWIDTH/N,HOVER/K,PROTECTED/K
  4. ;
  5. ;   Global options (for all panes):
  6. ;
  7. ;   CONFIG/K       Configuration file to be read (STRING)
  8. ;   FONT/K         Font name, e.g. "topaz.font" (STRING)
  9. ;   SIZE/N         Font size (NUMBER)
  10. ;   PROTECTED/K    Make pattern gadget read-only ? (BOOL)
  11. ;   DEEP/N         Depth of subdirectories to be scanned (NUMBER)
  12. ;   HOVER/K        Show hover effect ? (BOOL)
  13. ;   SLIDERWIDTH/N  Slider size (NUMBER)
  14. ;
  15. ;   Options for pane configuration:
  16. ;
  17. ;   PANE/K         Label of tab gadget (STRING)
  18. ;   PATTERN/K      DOS File pattern (STRING)
  19. ;   EXECUTABLE/K   DOS file pattern specifying the "clickable" files (STRING)
  20. ;   COMMAND/K      Command to be executed if the user clicks on a "clickable" file (STRING)
  21. ;   EXPLAIN/K      Command to be executed if the user clicks on other files or clicks with <ALT>
  22. ;   EXAMINE/S      Display additional information (file title)
  23. ;   SHORTNAME/S    Hide file suffix
  24. ;
  25. ; Placeholders in command strings
  26. ;
  27. ;   The first %s in command strings (COMMAND/K and EXPLAIN/K) is replaced with
  28. ;   the full path of the file the user has selected. The second %s is replaced
  29. ;   with the file name of the selected file relative to the root directory. You
  30. ;   can use %.0s anywhere in the command string to skip the first %s (this is a
  31. ;   formatting command setting the output length to 0, it produces "nothing").
  32. ;
  33. ; Using quotes and the asterisk character in this file
  34. ;
  35. ;   All lines in this file are parsed by the OS function ReadArgs() when the
  36. ;   Explorer plug-in reads the configuration. This function designates a special
  37. ;   meaning to the * character: while quotes normally are used as string
  38. ;   delimiter, a quote with a preceding asterisk (*") is "the quote character".
  39. ;   A n with a preceding asterisk (*n) is "the linefeed character". And an
  40. ;   asterisk with a preceding asterisk (**) is "the asterisk character". That's
  41. ;   why you find pattern strings of the form **.xyz in this file: the plug-in
  42. ;   actually sees this as *.xyz !
  43. ;
  44. ;   Things get a bit complicated for the arguments following after the COMMAND/K
  45. ;   and EXPLAIN/K options: GoldED uses another ReadArgs() pass to process
  46. ;   incoming command strings. Consequently, you have to be very careful with
  47. ;   using quotes in commands: replace all * with ** and all quotes with *" (quote
  48. ;   with a preceding asterisk) to prepare for parsing by the Explorer plug-in.
  49. ;   Having done this, repeat this step one more time to prepare for parsing by
  50. ;   the editor (use the editor's search-replace reqester for these steps if you
  51. ;   find it too confusing).
  52. ;
  53. PROTECTED=TRUE DEEP=0
  54. FONT="XHelvetica.font"
  55. SIZE=9
  56. PANE="Header"  PATTERN="**.(h|bh|bc|includes)"       EXECUTABLE="~(**.o)" COMMAND="WINDOW FORCE USE *"%s*"" EXPLAIN="OPEN NAME *"%s*""
  57. PANE="Sources" PATTERN="**.(bas|basic)" EXECUTABLE="~(**.o)" COMMAND="WINDOW FORCE USE *"%s*"" EXPLAIN="OPEN NAME *"%s*""
  58.